package algorithm;

import java.util.Random;
import java.util.concurrent.atomic.AtomicInteger;

public class RandomArr {

  public static int[] Arr(int size){
    int[] arr = new int[size];
    for (int i = 0; i < size; i++) {
      int i1 = new Random().nextInt(100);
      arr[i] = i1;
    }
    return arr;
  }

  public static AtomicInteger id = new AtomicInteger();

  public static String getID() {
    String def = "000000";
    int andDecrement = id.getAndIncrement();
    String s = String.valueOf(andDecrement);
    StringBuilder id = new StringBuilder(def + s);
    return id.substring(s.length());
  }

  public static void main(String[] args) {
    while(true){
      System.out.println(getID());

    }
  }

}
